
//import tabbarItems from '../../common/datas/tabbarItem.js';
//import router from '@system.router';  //导入路由
//export default {
//
//    jump(index) {
//        //        this.tabbarItems.forEach((item,index) => {
//        //            item.img = tabbarItems[index].img;
//        //        });
//        //        this.tabbarItems[index].img = this.tabbarItems[index].simg;
//        //    }
//
//        switch (index) {
//            case 1:
//                router.push({
//                    uri: "pages/shouye/shouye",
//                });
//            case 2:
//                router.push({
//                    uri: "pages/shuju/index",
//                });
//            case 3:
//                router.push({
//                    uri: "pages/kangfu/kangfu",
//                });
//            case 4:
//                router.push({
//                    uri: "pages/wode/index",
//                });
//        }
//    }
//}
import tabbarItems from '../../common/datas/tabbarItem.js';
import router from '@system.router';  //导入路由
export default {
    data: {
        tabbarItems
    },
    jump(index) {
        //        this.tabbarItems.forEach((item,index) => {
        //            item.img = tabbarItems[index].img;
        //        });
        //        this.tabbarItems[index].img = this.tabbarItems[index].simg;
        //    }

        switch (index) {
            case 0:
                router.push({
                    uri: "pages/shouye/shouye",
                });
            case 1:
                router.push({
                    uri: "pages/shuju/index",
                });
            case 2:
                router.push({
                    uri: "pages/kangfu/kangfu",
                });
            case 3:
                router.push({
                    uri: "pages/wode/index",
                });
        }
    }
}
